package com.ynu.springbootappdemo.dao;

import com.ynu.springbootappdemo.model.entity.Categories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ICategoriesDao extends JpaRepository<Categories,Long> {
    Categories findCategoriesByName(String name);

    List<Categories> findAllByLayer(int layer);
}
